correct patch to also compile with openssl-1.0.2
authorGert Wollny <gw.fossdev@gmail.com>
Sat, 2 Jul 2016 19:14:35 +0000 (19:14 +0000)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 2 Jul 2016 19:14:35 +0000 (19:14 +0000)
debian/patches/09_openssl-1.1.patch

index 0a3c03e2cf7ab26c079930711667aed68a2ed30d..ba9851d5257e01d0faa411550b9c99ff808b5394 100644 (file)
@@ -10,7 +10,7 @@ Bug-Debian: http://bugs.debian.org/828281
  
 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
 +#define SSL_CTX_get_cert_store(ctx) ctx->cert_store
-+#define EVP_PKEY_base_id(key) key->type;
++#define EVP_PKEY_base_id(key) EVP_PKEY_type(key->type)
 +#endif
 +
  extern "C" int DcmTLSTransportLayer_certificateValidationCallback(int ok, X509_STORE_CTX *storeContext);
@@ -84,7 +84,7 @@ Bug-Debian: http://bugs.debian.org/828281
  END_EXTERN_C
  
 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#define EVP_PKEY_id(key) key->type;
++#define EVP_PKEY_id(key) key->type
 +#endif
 +
  SiCertificate::SiCertificate()
@@ -153,7 +153,7 @@ Bug-Debian: http://bugs.debian.org/828281
  END_EXTERN_C
  
 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#define EVP_PKEY_id(key) key->type;
++#define EVP_PKEY_id(key) key->type
 +#endif
  
  /* buf     : buffer to write password into